package com.dj;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class UserProxy {
    //前置通知
    @Before(value = "execution(* com.dj.User.add(..))")
    public void before(){
        System.out.println("方法执行前");
    }
}

